home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / joysti1a / readme.txt < prev   
Text File  |  1998-02-12  |  2KB  |  40 lines

  1.                  -----------------------------------
  2.              Joystick Sample Project Readme File
  3.                     February l998
  4.              -----------------------------------
  5.                    (c) Microsoft Corporation, 1998
  6.  
  7. SUMMARY
  8. =======
  9.  
  10. Joystick.exe is a self-extracting compressed file that contains a sample
  11. project that demonstrates how to use the Joystick API functions in Visual
  12. Basic. You can use this sample as a starting point for a game program that
  13. uses a joystick for an input device.
  14.  
  15.  
  16. MORE INFORMATION
  17. ================
  18.  
  19. When you run the self-extracting compressed file, the following files are
  20. expanded in the Joystick Sample Project directory:
  21.  
  22.  - Form1.frm (7Kb)-the main form of the project
  23.  - Joystick.vbp (1Kb)-the project file
  24.  - Joystick.vbw (1Kb)-the workspace file
  25.  - Module1.bas (7Kb)-the module containing the function, user-defined type
  26.                      and constants declarations.
  27.  - Readme.txt (2Kb)-you are currently reading this file.
  28.  
  29. How The Sample Works
  30. --------------------
  31.  
  32. The joyGetDevCaps function is used in the form load event to determine if a
  33. joystick is connected to the system. If the function is successful, the
  34. form is redrawn with new controls to display the capabilities of the
  35. joystick. These capabilities are stored in the members of the JOYCAPS 
  36. user-defined type variable. A timer control is used to query the joystick's
  37. position. The current position is determined by the successful results of 
  38. the joyGetPosEx function. The members of the JOYINFOEX user-defined 
  39. variable type contain the joystick position information. This information 
  40. is displayed in text boxes in the form.